package datatypes.tv;

public class tvActor {
	private String actor_id;
	private String actor_name;
	private String tv_starring_roles;
	private String tv_guest_roles;

	public tvActor(String actor_name, String actor_id,
			String tv_starring_roles, String tv_guest_roles) {
		this.actor_id = actor_id;
		this.actor_name = actor_name;
		this.tv_starring_roles = tv_starring_roles;
		this.tv_guest_roles = tv_guest_roles;
	}

	public String getActorID() {
		return actor_id;
	}

	public void setActorID(String actorID) {
		this.actor_id = actorID;
	}

	public String getName() {
		return actor_name;
	}

	public void setName(String name) {
		this.actor_name = name;
	}

	@Override
	public String toString() {
		StringBuilder sb = new StringBuilder();
		
		if (actor_id != null && actor_id.length() > 0) {
			sb.append("actor id: " + actor_id + "\n");
		}
		
		if (actor_name != null && actor_name.length() > 0) {
			sb.append("actor name: " + actor_name + "\n");
		}
		
		if (tv_starring_roles != null && tv_starring_roles.length() > 0) {
			sb.append("tv_starring_roles: " + tv_starring_roles + "\n");
		}
		
		if (tv_starring_roles != null && tv_starring_roles.length() > 0) {
			sb.append("tv_guest_roles: " + tv_starring_roles + "\n");
		}

		return sb.toString();
	}

	public String getTv_guest_roles() {
		return tv_guest_roles;
	}

	public void setTv_guest_roles(String tv_guest_roles) {
		this.tv_guest_roles = tv_guest_roles;
	}

}
